/**
 * http接口API集中管理
 */
const install = (Vue, vm) => {
	// 小程序通用的接口
	let getWxLogin = (params = {}) => vm.$u.get('/Applets/getLogin', params);
	let getWxUserInfo = (params = {}) => vm.$u.post('/Applets/getUserInfo', params);
	let getWxPhoneNum = (params = {}) => vm.$u.post('/Applets/getPhoneNum', params);
	
	vm.$u.api = {
		getWxLogin,
		getWxUserInfo,
		getWxPhoneNum,
	}
}

export default {
	install
}
